import React, { useEffect, useState } from "react";
import { Page, useNavigate } from "zmp-ui";
import { useRecoilValue, useSetRecoilState } from "recoil";
import { userState } from "../../state";
import request from "../../utils/request";
import "./Index.scss";

const OrderVerifyPage = () => {
  const user = useRecoilValue(userState);
  const navigate = useNavigate();
  const navH = 0;
  const [helperlist, setHelperlist] = useState([]);
  // 获取仓库列表
  const getVerifyList = () => {
    request.get(url + "&wxapp_id=10001").then((res) => {
      const helper = res.data.data;
      setHelperlist(helper);
    });
  };
  const targetDetail = (e, id) => {
    navigate("");
  };
  useEffect(() => {
    console.log("模拟componentDidMount第一次渲染");
    getVerifyList();
    return () => {
      console.log("模拟componentWillUnmount执行销毁后");
    };
  }, []);
  return <Page className="page order"></Page>;
};
export default OrderVerifyPage;
